extends Node2D


@export var max_health: int = 1000
var cur_health: int = max_health

func _set_health(value: int) :
   cur_health = clamp(value,0,max_health)
